package com.weayer.controller;

import com.weayer.dto.ResponseResult;
import com.weayer.service.DistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @description: 地区Controller
 * @author: Weayer
 **/
@Controller
public class DistrictController {
    @Autowired
    DistrictService dicDistrictService;

    @GetMapping("/district")
    public ResponseResult initDistrict(String keywords){
        return dicDistrictService.initDistrict(keywords);
    }
}
